<body onload="resetPassword();">
    <div data-backdrop="static" data-keyboard="false" class="modal fade" id="resetPass" tabindex="-1" role="dialog" aria-hidden="true">

        <div class="modal-dialog" style="margin-left: 35%">
            <div class="modal-content" style="width:70%">

                <div class="modal-header">
                    <a href="<?echo $location?>" class="close" aria-hidden="true">&times;</a>
                    <h4 class="modal-title">&nbsp;</h4>
                </div>
                <div class="modal-body">
                    <?echo $message?>
                </div>

                <div class="modal-footer">
                    <a href="<?echo $location?>" id="resetLink" class="btn btn-success btn-sm" style="">OK</a>
                </div> 

            </div>
        </div>
    </div>


    <script>
    function resetPassword() {
        event.preventDefault();
        $('#resetPass').modal({}).css({
            'padding-top': function() {
                return '10' + '%';
            }
        });
    }
    </script>